import "whatwg-fetch"
import promise from "es6-promise"

const host='https://waimai.zzxkeji.cn'
/*
 *获取资讯列表
 */
export let getList = async (url,params) => {
  let response = await fetch(host+url,params).catch((error) => {
    console.log(error)
  })
  return await response.json().catch((error) => {
    console.log(error)
  })
}